package com.inmaytide.website.service.system;

import com.inmaytide.website.domain.entities.system.SysUser;
import com.inmaytide.website.utils.pagination.Pagination;

import java.util.List;

public interface SysUserService {

    List<SysUser> findList(SysUser condition);

    List<SysUser> findList();

    /**
     * 根据主键ID查询用户信息
     *
     * @param id
     * @return
     */
    SysUser get(Long id);

    /**
     * 根据用户登录名查询用户信息
     *
     * @param loginName
     * @return
     */
    SysUser get(String loginName);

    SysUser insert(SysUser inst);

    void update(SysUser inst);

    Pagination<SysUser> findList(Pagination<SysUser> pagination);

}
